﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace iHub
{
    public partial class splash : Form
    {
        private int i = 0;
        public splash()
        {
            InitializeComponent();
            timer1.Enabled=true;
           // int i;

           // i = 0;

         //   while (i < 101)
           // {
         //       i++;
         ////       label1.Text = Convert.ToString(i);
         ///       Console.WriteLine(i);
          //  }

         //   this.Dispose();

           // main view = new main();
          //  view.ShowDialog();
        }

        private void splash_Load(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            int display;

            i += 1;

            display = i * 10;

            if (display < 101)
            {
                progressBar.Value = display;
            }
            else {};

            if (i > 10)
            {
                this.Dispose();
                //main view = new main();
                //view.ShowDialog();

                display = 100;

            }

            
        }

        private void splash_Load_1(object sender, EventArgs e)
        {

        }
    }
}
